﻿using AssetManageSystem.Model.Enum;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace AssetManageSystem.Model.DictionaryManage
{
    public class DictionaryType : TopBasePoco
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Display(Name = "名称")]
        [Required(ErrorMessage = "Validate.{0}required")]
        [StringLength(10, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string DicTypeName { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        [Display(Name = "编码")]
        [Required(ErrorMessage = "Validate.{0}required")]
        [StringLength(3, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string DicTypeNum { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name = "排序")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public int DisplayOrder { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        public string Remark { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name = "状态")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public CommonStatus? Status { get; set; }
    }
}
